package com.peoit.honeycomb.domain;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 项目财务报表
 * 
 * @author shisheng.zheng
 *
 */
@Entity
@Table(name = "honeycomb_financereport")
public class FinanceReport extends BaseEntity {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	public FinanceReport() {
		super();
	}

	@Column(length = 30, nullable = true)
	private String reportDate; // 年
	@Column(length = 16, nullable = true)
	private String remarks; // 月

	private Double income; // 收入

	private Double expense; // 支出

	/**
	 * project
	 */
	@ManyToOne(cascade = { CascadeType.REFRESH, CascadeType.MERGE }, optional = false)
	@JoinColumn(name = "project_id")
	private HoneycombProject project;

	public String getReportDate() {
		return reportDate;
	}

	public void setReportDate(String reportDate) {
		this.reportDate = reportDate;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Double getIncome() {
		return income;
	}

	public void setIncome(Double income) {
		this.income = income;
	}

	public Double getExpense() {
		return expense;
	}

	public void setExpense(Double expense) {
		this.expense = expense;
	}

	public HoneycombProject getProject() {
		return project;
	}

	public void setProject(HoneycombProject project) {
		this.project = project;
	}

}
